﻿<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ForgotPass.aspx.vb" Inherits="ForgotPassPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:UpdatePanel ID="upnlForgotPass" runat="server">
        <ContentTemplate>
            <center>
            <h1>Password Recovery</h1>
            <div id="forgotpass">
                <asp:Wizard StepStyle-CssClass="wizsteps"  Width="500px" ID="wizForgotPass" 
                    runat="server" DisplaySideBar="False" >
                    <FinishNavigationTemplate>
                        <center>
                            <asp:Button ID="FinishButton" CausesValidation="true" runat="server" CommandName="MoveComplete" Text="Change Password" />
                        </center>
                    </FinishNavigationTemplate>
                    <StartNavigationTemplate>
                        <center>
                            <asp:Button ID="StartNextButton" CausesValidation="true" runat="server" CommandName="MoveNext" Text="Next" />
                        </center>
                    </StartNavigationTemplate>
                    <StepNavigationTemplate>
                        <center>
                            <asp:Button ID="StepNextButton" CausesValidation="true" runat="server" CommandName="MoveNext" Text="Next" />
                        </center>
                    </StepNavigationTemplate>
                    <StepStyle CssClass="wizsteps" />
                    <WizardSteps>
                        <asp:WizardStep runat="server" title="Step 1">
                        <div>
                            <span>What is your User Name?</span><br />
                            <asp:TextBox ID="txtUserName" MaxLength="50" runat="server"/><br />
                            <asp:RequiredFieldValidator ControlToValidate="txtUserName" ID="vldReqUserName" runat="server" Display="None" ErrorMessage="User Name is required"/>
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldReqUserName_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldReqUserName"/>
                            <asp:CustomValidator ID="vldCustUserName" ControlToValidate="txtUserName" 
                                runat="server" Display="None" ErrorMessage="User Name is not valid"  />
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldCustUserName_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldCustUserName" />
                        </div>
                        </asp:WizardStep>
                        <asp:WizardStep runat="server" title="Step 2">
                        <div>
                            <asp:Label ID="lblQ1" runat="server" Text="What is security answer 1?" /><br />
                            <asp:TextBox ID="txtSecurityA1" MaxLength="50" runat="server" /><br />
                            <asp:RequiredFieldValidator ControlToValidate="txtSecurityA1" ID="vldReqSecurityA1" runat="server" Display="None" ErrorMessage="Answer Security Question 1"/>
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldReqSecurityA1_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldReqSecurityA1" />
                            <asp:CustomValidator ControlToValidate="txtSecurityA1" ID="vldCusSecurityA1" runat="server"  Display="None" ErrorMessage="Answer could not be validated." />
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldCusSecurityA1_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldCusSecurityA1" />
                            <br />
                            <br />
                            <asp:Label ID="lblQ2" runat="server" Text="What is security answer 2?" /><br />
                            <asp:TextBox ID="txtSecurityA2" MaxLength="50" runat="server" /><br />
                            <asp:RequiredFieldValidator ControlToValidate="txtSecurityA2" ID="vldReqSecurityA2" runat="server" Display="None" ErrorMessage="Answer Security Question 2"/>
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldReqSecurityA2_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldReqSecurityA2"/>
                            <asp:CustomValidator ControlToValidate="txtSecurityA2" ID="vldCusSecurityA2" runat="server"  Display="None" ErrorMessage="Answer could not be validated." />
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldCusSecurityA2_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldCusSecurityA2" />
                            <br />
                        </div>
                        </asp:WizardStep>
                        <asp:WizardStep runat="server" Title="Step 3">
                        <div>
                            <asp:Label ID="lblErrorMsg" runat="server" />
                            <span>New Password</span><br />
                            <asp:TextBox ID="txtPassword" MaxLength="50" Width="148px" TextMode="Password" runat="server"/><br />
                            <asp:RequiredFieldValidator ControlToValidate="txtPassword" ID="vldReqPassword" runat="server" Display="None" ErrorMessage="Password is required"/>
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldReqPassword_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldReqPassword">
                            </ajaxToolkit:ValidatorCalloutExtender>
                            <ajaxToolkit:PasswordStrength TextCssClass="smallfont" TargetControlID="txtPassword" ID="PasswordStrength1" runat="server" 
                                PrefixText="" MinimumNumericCharacters="1" MinimumUpperCaseCharacters="1" 
                                PreferredPasswordLength="6" RequiresUpperAndLowerCaseCharacters="True" 
                                StrengthIndicatorType="Text" /><br />
                            <span>Confirm Password</span><br />
                            <asp:TextBox TextMode="Password" MaxLength="50" Width="148px" ID="txtPassword1" runat="server"  /><br />
                            <asp:RequiredFieldValidator ControlToValidate="txtPassword1" ID="vldReqPassword1" runat="server" Display="None" ErrorMessage="Confirm Password"/>
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldReqPassword1_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldReqPassword1">
                            </ajaxToolkit:ValidatorCalloutExtender>
                            <asp:CompareValidator ControlToValidate="txtPassword1" Operator="Equal" ControlToCompare="txtPassword" Display="None" ID="vldCompPassword" runat="server" ErrorMessage="Passwords do not match"/>
                            <ajaxToolkit:ValidatorCalloutExtender ID="vldCompPassword_ValidatorCalloutExtender" 
                                runat="server" Enabled="True" TargetControlID="vldCompPassword">
                            </ajaxToolkit:ValidatorCalloutExtender>
                            <ajaxToolkit:PasswordStrength TextCssClass="smallfont" TargetControlID="txtPassword1" ID="PasswordStrength2" runat="server" 
                                PrefixText="" MinimumNumericCharacters="1" MinimumUpperCaseCharacters="1" 
                                PreferredPasswordLength="6" RequiresUpperAndLowerCaseCharacters="True" 
                                StrengthIndicatorType="Text" />
                        </div>
                        </asp:WizardStep>
                    </WizardSteps>
                </asp:Wizard>
            </div>
            <br />
            <center>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="wizForgotPass" 
                EventName="NextButtonClick" />
            <asp:AsyncPostBackTrigger ControlID="wizForgotPass" 
                EventName="FinishButtonClick" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>

